package com.demo.bean;

import com.demo.exception.IMError;

public class Ret {

	private int code;
	private String msg;
	private Object data;

	public Ret() {
	}

	public Ret(IMError error) {
		this.code = error.getErrorCode();
		this.msg = error.getErrorMsg();
	}
	
	public Ret(int code) {
		this.code = code;
	}

	public Ret(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public Ret(int code, Object data) {
		this.code = code;
		this.data = data;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
